<?php
/**
 * auth_login.inc
 * Template: The standard login form.
 * @copyright	Copyright(c) 2002-2010 Bjorn Winberg
 * @author		Bjorn Winberg <cms@anomalye.net>
 * @license		http://www.gnu.org/licenses/gpl.html GNU General Public License version 2
 * @package		AnomalyWiki
 */
?>
<div class="helpBox">
	<?php 
		echo $this->localString('LF_HELP');
		echo $this->localString('LF_REGISTER', array('<a href="' . $this->generateUrl('auth', array('a' => 'register')) . '">', '</a>'));
	?>
</div>

<form class="simpleForm" id="auth_loginForm" action="<?php echo $this->generateUrl('auth', array('a' => 'login'));?>" method='post'>
	<fieldset>
	<legend><?php echo $this->localString('LF_LOGIN');?></legend>
	<div class="simpleRequired">
		<label for="name"><?php echo $this->localString('LF_NAME');?></label>
		<input type='text' id='name' name='name' value="<?php echo isset($aParams['name'])? $this->getSafeStr($aParams['name']): '';?>" maxlength="<?php echo Auth::PARAM_MAX_NAME;?>" />
	</div>
	<div class="simpleRequired">
		<label for="password"><?php echo $this->localString('LF_PASSWORD');?></label>
		<input type='password' name='password' value="" maxlength="<?php echo Auth::PARAM_MAX_PASSWORD;?>" />
	</div>
	<input type='submit' name='submit' value="<?php echo $this->localString('LF_SUBMIT');?>" />
	</fieldset>
</form>
